<?php if (!defined('THINK_PATH')) exit();?><html>
    <head>
        <meta charset="utf-8">
        <style>
            #header{
                width:100%;
                height:100px;
                line-height:100px;
                background:#3cc;
                text-align:center;
                font-size:45px;
                color:white;
            }
            #news{
                line-height:30px;
            }
        </style>
    </head>
    <body>
        <div id="header">
            baidu news
        </div>
        <div id="news">
            <?php if(is_array($data)): foreach($data as $key=>$v): ?><a href="<?php echo U("index/detail", ["id"=>$v["id"]]);?>"><?php echo ($v["title"]); ?></a><br><?php endforeach; endif; ?>
        </div>
    </body>
</html>